package net.tycmc.cty.ctyms.web.Action;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


import net.tycmc.bulb.common.util.DateUtil;
import net.tycmc.bulb.common.util.MapGetter;
import net.tycmc.bulb.common.util.StringUtil;
import net.tycmc.cty.ctyms.timejob.common.DateRegUtil;
import net.tycmc.cty.ctyms.timejob.iems.service.DrivingBehavior2Service;
import net.tycmc.cty.ctyms.timejob.iems.service.VclRoadStatService;

public class VclDB2DeloyHandRunAction extends BaseActionS2{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public DrivingBehavior2Service getDrivingBehavior2Service() {
		return drivingBehavior2Service;
	}

	public void setDrivingBehavior2Service(
			DrivingBehavior2Service drivingBehavior2Service) {
		this.drivingBehavior2Service = drivingBehavior2Service;
	}

	private DrivingBehavior2Service drivingBehavior2Service;
	

	/**
	 * 初始化方法，用于跳转
	 * @return
	 */
	public String vclDB2DeloyHandRunInit(){
		request.setAttribute("today", DateUtil.addDay(0));
		return "vclDB2DeloyHandRunInit";
	}
	
	/**
	 * 执行
	 * @return
	 * @throws IOException 
	 */
	public String handStatVclDB2Deloy() throws IOException{
		drivingBehavior2Service.execDeloyStart();
		PrintWriter out = response.getWriter();
		out.print("{'status':'1'}");
		return null;
	}
	
}
